﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Showreport.aspx.cs" Inherits="School.Pages.Bus.Showreport" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="100%">
            <tr>
                <td>
                </td>
                <td>
                  
                    <rsweb:ReportViewer ID="rvorder" runat="server" Font-Names="Verdana" Font-Size="8pt"
                        Height="" InteractiveDeviceInfos="(Collection)" WaitMessageFont-Names="Verdana"
                        WaitMessageFont-Size="14pt" Width="">
                        <LocalReport ReportPath="Bus\Report\OrderReport.rdlc">
                            <DataSources>
                                <rsweb:ReportDataSource DataSourceId="OdsOrder" Name="Order" />
                                <rsweb:ReportDataSource DataSourceId="OdsDiscount" Name="order_Discount" />
                            </DataSources>
                        </LocalReport>
                    </rsweb:ReportViewer>
                    <asp:ObjectDataSource ID="OdsDiscount" runat="server" SelectMethod="Order_Dis_report"
                        TypeName="School.Entities.Bus_Repository" 
                        OnSelecting="OdsDiscount_Selecting" 
                        OldValuesParameterFormatString="original_{0}">
                        <SelectParameters>
                            <asp:Parameter Name="payment_id" Type="Int32" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                    <asp:ObjectDataSource ID="OdsOrder" runat="server" SelectMethod="Orderreport" TypeName="School.Entities.Bus_Repository"
                        OnSelecting="OdsOrder_Selecting" 
                        OldValuesParameterFormatString="original_{0}">
                        <SelectParameters>
                            <asp:QueryStringParameter Name="payment_id" QueryStringField="Id" 
                                Type="Int32" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                </td>
            </tr>
        </table>
    </div>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    </form>
</body>
</html>
